import request from "@/utils/request";
import store from "@/store/index";

// 夹带k_token
function addK_Token(data) {
    var token = {
        k_token: store.getters.k_token
    };
    Object.assign(data, token);
    return data;
}

export function startHomework(data) {
    return request({
        url: "/location_url/user/Grade.Stuhomework/startHomework",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function getSestion(data) {
    return request({
        url: "/location_url/user/Grade.Stupreviewing/getSestion",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function creatPreviewlog(data) {
    return request({
        url: "/location_url/user/Grade.Stupreviewing/creatPreviewlog",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function getTranslationByZid(data) {
    return request({
        url: "/location_url/user/subject.Lists/getTranslationByZid",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function submintPreviewing(data) {
    return request({
        url: "/location_url/user/Grade.Stupreviewing/submintPreviewing",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function correctHomeworklist(data) {
    return request({
        url: "/location_url/user/Grade.Stuhomework/correctHomeworklist",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function correctHomework(data) {
    return request({
        url: "/location_url/user/Grade.Stuhomework/correctHomework",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
